﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;
using Models;

namespace Workflow
{
    public partial class ReviewBug : System.Web.UI.Page
    {
        public List<WorkflowStatus> resultList = new List<WorkflowStatus>();
        private WorkflowManager objWorkflowManager = new WorkflowManager();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.IsAuthenticated)
            {
                int chlidStatusNo = Convert.ToInt32(Request.QueryString["StatusNo"]);
                if (chlidStatusNo == 1)
                {
                    resultList = objWorkflowManager.GetWorkflowStatus(Session["FullName"].ToString());
                }
                for (int i = resultList.Count - 1; i >= 0; i--)
                {
                    if (resultList[i].WorkMouldId != 3)
                    {
                        resultList.Remove(resultList[i]);
                    }
                }
            }

        }
    }
}